package com.d3works.apps.hr.service.lunch.voucher;

import com.d3works.apps.hr.db.Employee;
import com.d3works.apps.hr.db.LunchVoucherMgt;
import com.d3works.apps.hr.db.LunchVoucherMgtLine;
import com.d3works.exception.D3worksException;

public interface LunchVoucherMgtLineService {

  public LunchVoucherMgtLine create(Employee employee, LunchVoucherMgt lunchVoucherMgt)
      throws D3worksException;

  /**
   * Set the lunch voucher format in the line. If the format in employee is null, uses format from
   * HR configuration.
   *
   * @param employee
   * @param lunchVoucherMgt
   * @param lunchVoucherMgtLine @throws D3worksException
   */
  void fillLunchVoucherFormat(
      Employee employee, LunchVoucherMgt lunchVoucherMgt, LunchVoucherMgtLine lunchVoucherMgtLine)
      throws D3worksException;

  public void compute(LunchVoucherMgtLine lunchVoucherMgtLine) throws D3worksException;

  public void computeAllAttrs(
      Employee employee, LunchVoucherMgt lunchVoucherMgt, LunchVoucherMgtLine lunchVoucherMgtLine);
}
